//
//  MySlider.m
//  HB
//
//  Created by 孙智慧 on 16/1/4.
//  Copyright © 2016年 孙智慧. All rights reserved.
//

#import "MySlider.h"

@implementation MySlider

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(CGRect)minimumValueImageRectForBounds:(CGRect)bounds; {
    for(UIView *view in [self subviews]) {
        if ([view isKindOfClass:[UIImageView class]]) {
            view.clipsToBounds = YES;
            view.contentMode = UIViewContentModeBottomLeft;
        }
    }
    return bounds;
}

 

@end
